<?php

class pertanyaan_keamananTable extends Doctrine_Table
{
    public function getPertanyaanList() {
        $q = Doctrine_Query::create()
                ->select('id, pertanyaan')
                ->from('pertanyaan_keamanan');

        $q = $q->execute();

        $result = array();
        foreach($q as $r) {
            $result[$r->getId()] = $r->getPertanyaan();
        }

        return $result;
    }
}